<template>
    <div>
    <detail :result="item" v-for="item of result" :key="item.id"></detail>
    </div>
</template>

<script>
import detail from '../components/detail'
    export default {
        components:{
            detail
        },
        data(){
            return {
                result:[]
            }
        },
    mounted(){
        var {id}=this.$route.query
        let url = `http://47.119.132.191:4000/api/movieDetail?id=${id}`
        this.$http.get(url).then(res=>{
            this.result = res.data.res
        })
    }
    }
</script>

<style scoped>

</style>